import Vue from 'vue'
import VueRouter from 'vue-router'
// import templateApi from './template'

Vue.use(VueRouter)

const routes = [
  //引用路由 
  // ...templateApi,
  {
    path:'/',
    redirect:'/index'
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/index/index')
  },
  {
    path: '/file',
    name: 'file',
    component: () => import('../views/file/file')
  },
]

const router = new VueRouter({
  routes
})

export default router
